# coding: utf-8 
import threading
import time

def thread_job():
	print "T1 start\n"
	for i in xrange(10):
		time.sleep(0.1)
	print "T1 finish\n"

def T2_job():
	print 'T2 start\n'
	print 'T2 finish\n'

def main():
	add_thread = threading.Thread(target=thread_job, name='T1')
	thread2 = threading.Thread(target=T2_job, name='T2')
	add_thread.start()
	add_thread.join() # 多线程，等待add_thread线程执行完之后接着运行
	thread2.start()
	# thread2.join()
	print 'all done\n'
	# print threading.active_count()
	# print threading.enumerate()
	# print threading.current_thread()

if __name__ == '__main__':
	main()